import { findHotAPI } from '@/apis/home'
import { ref } from 'vue'
import { defineStore } from 'pinia'
export const useFindHotStore = defineStore('findHot', () => {
    const findHotList = ref([])
    const getFindHot = async () => {
        let res = await findHotAPI()
        if (res.code == 1) {
            findHotList.value = res.result
        }
    }

    return { findHotList, getFindHot }
})
